@pytest.fixture(autouse=True)
def mock_apis(monkeypatch):
    # 替换所有外部API调用
    monkeypatch.setattr('requests.get', mock_requests_get)
    monkeypatch.setattr('ts.pro_api', mock_tushare) 